<%@ page import="openvote.Propostas" %>



<div class="fieldcontain ${hasErrors(bean: propostasInstance, field: 'titulo', 'error')} required">
	<label for="titulo">
		<g:message code="propostas.titulo.label" default="Titulo" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="titulo" required="" value="${propostasInstance?.titulo}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: propostasInstance, field: 'descricao', 'error')} required">
	<label for="descricao">
		<g:message code="propostas.descricao.label" default="Descricao" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="descricao" required="" value="${propostasInstance?.descricao}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: propostasInstance, field: 'dataPervisao', 'error')} required">
	<label for="dataPervisao">
		<g:message code="propostas.dataPervisao.label" default="Data Pervisao" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="dataPervisao" precision="day"  value="${propostasInstance?.dataPervisao}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: propostasInstance, field: 'candidato', 'error')} required">
	<label for="candidato">
		<g:message code="propostas.candidato.label" default="Candidato" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="candidato" name="candidato.id" from="${openvote.Candidato.list()}" optionKey="id" optionValue="nome" required="" value="${propostasInstance?.candidato?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: propostasInstance, field: 'areaAtuacao', 'error')} ">
	<label for="areaAtuacao">
		<g:message code="propostas.areaAtuacao.label" default="Area Atuacao" />
		
	</label>
	<g:textField name="areaAtuacao" value="${propostasInstance?.areaAtuacao}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: propostasInstance, field: 'dataCadastro', 'error')} required">
	<label for="dataCadastro">
		<g:message code="propostas.dataCadastro.label" default="Data Cadastro" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="dataCadastro" precision="day"  value="${propostasInstance?.dataCadastro}"  />
</div>

